package com.gxa.service.impl.statistical;

import com.gxa.mapper.statistical.UserProfileMapper;
import com.gxa.pojo.vo.FileDataVo;
import com.gxa.service.statistical.UserProfileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * <h3>new-zhyl</h3>
 * <p></p>
 *
 * @author : ch
 * @date : 2024-02-22 19:00
 **/
@Service
public class UserProfileServiceImpl implements UserProfileService {
    @Autowired
    private UserProfileMapper userProfileMapper;
    @Override
    public Integer todaysFile() {
        return userProfileMapper.todaysFile();
    }
    @Override
    public Integer selectDifference() {
        return userProfileMapper.selectDifference();
    }
    @Override
    public Integer selectCount() {
        return userProfileMapper.selectCount();
    }
    @Override
    public Integer selectWeekCount() {
        return userProfileMapper.selectWeekCount();
    }
    @Override
    public Integer selectWeekDifference() {
        return userProfileMapper.selectWeekDifference();
    }
    @Override
    public Integer selectYearDifference() {
        return  userProfileMapper.selectYearDifference();
    }
    @Override
    public Integer selectMonthCount() {
        return userProfileMapper.selectMonthCount();
    }
    @Override
    public Integer selectmonthDifference() {
        return userProfileMapper.selectmonthDifference();
    }
    @Override
    public  List<FileDataVo> selectCountByDate(LocalDate startDate, LocalDate endDate) {

        return userProfileMapper.selectCountByDate(startDate,endDate);
    }

    @Override
    public List<FileDataVo> selectCountByAge() {

        return userProfileMapper.selectCountByAge();
    }

    @Override
    public Double selectRatioBySex() {
        return userProfileMapper.selectRatioBySex();
    }


}
